package com.hyb.entity;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *  权限信息
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_permission")
@ApiModel("权限信息")
public class Permission implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "permission_id", type = IdType.AUTO)
    @ApiModelProperty("权限id")
    private Integer permissionId;
    @ApiModelProperty("权限标识")
    private String permissionCode;
    @ApiModelProperty("权限名字")
    private String permissionName;
    @ApiModelProperty("父id")
    private Integer fatherId;
    @ApiModelProperty("权限路径")
    private String permissionPath;
    @ApiModelProperty("是否是菜单")
    private String isMenu;
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE,update = "now()")
    private LocalDateTime updateTime;
    @ApiModelProperty("修改次数")
    @Version
    private Integer version;
}
